<template>
  <div class="iconfont backTop" @click="backTop">&#xe64b;</div>
</template>

<script>
export default {
  name: "BackTop",
  setup(props,{emit}){
    const backTop=()=>{
      emit('backTop');
    }
    return{
      backTop
    }
  }
}
</script>

<style scoped lang="scss">
.backTop{
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 80px;
  right: 2px;
  font-size: 34px;
}
</style>